package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_product_attribute")
public class ShopProductAttribute extends Model<ShopProductAttribute> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	@TableField("attribute_key_id")
	private Integer attributeKeyId;
	@TableField("attribute_key")
	private String attributeKey;
	@TableField("attribute_value")
	private String attributeValue;
	@TableField("product_id")
	private Integer productId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getAttributeKeyId() {
		return attributeKeyId;
	}

	public void setAttributeKeyId(Integer attributeKeyId) {
		this.attributeKeyId = attributeKeyId;
	}

	public String getAttributeKey() {
		return attributeKey;
	}

	public void setAttributeKey(String attributeKey) {
		this.attributeKey = attributeKey;
	}

	public String getAttributeValue() {
		return attributeValue;
	}

	public void setAttributeValue(String attributeValue) {
		this.attributeValue = attributeValue;
	}

	public Integer getProductId() {
		return productId;
	}

	public void setProductId(Integer productId) {
		this.productId = productId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopProductAttribute{" +
			"id=" + id +
			", attributeKeyId=" + attributeKeyId +
			", attributeKey=" + attributeKey +
			", attributeValue=" + attributeValue +
			", productId=" + productId +
			"}";
	}
}
